package com.wh.stressservice;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
@MapperScan("com.msf.modules.*.mapper")
@EnableAsync
public class StressServiceApplication {

    public static void main(String[] args) {
        SpringApplication.run(StressServiceApplication.class, args);
    }

    @Bean
    public ExecutorService executorService() {
        return Executors.newFixedThreadPool(10); // 创建一个固定大小为10的线程池
    }

}
